﻿<UserControl x:Class="SR.ExpressionEvaluator.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:exp="clr-namespace:SR.ExpressionEvaluator.Lib;assembly=SR.ExpressionEvaluator.Lib"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="1*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*" />
            <ColumnDefinition Width="300" />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.ColumnSpan="2" Margin="50,5,5,5">
            <TextBlock Text="Expression Evaluator" FontSize="25" FontWeight="Bold" />
            <TextBlock Text="Shishir Rao" />
        </StackPanel>
        <Border Grid.Row="1" Grid.Column="0" CornerRadius="5" Background="#EECCCCCC" BorderBrush="Gray" BorderThickness="1" Margin="50">
            <StackPanel Margin="50" HorizontalAlignment="Stretch">
                <exp:ExpressionTextBox x:Name="txtInput" Font="Lucida Sans Unicode" BorderBrush="Red" HorizontalAlignment="Stretch" />
                <!--<TextBox x:Name="txtInput" BorderBrush="Black" BorderThickness="2" AcceptsReturn="False" Margin="5" FontSize="15" />-->
                <StackPanel Orientation="Horizontal">
                    <Button Click="Button_Click" Content="Evaluate" Width="250" Height="30" Margin="5" />
                    <TextBlock x:Name="txtOutput" FontWeight="Bold" FontSize="15" Margin="5" VerticalAlignment="Center" />
                </StackPanel>
            </StackPanel>
        </Border>
        <StackPanel Grid.Row="1" Grid.Column="1" Margin="25">
            <TextBlock Text="Enter any text into the text box" />
            <TextBlock Text="Avoid spaces in the formula" />
            <TextBlock Text="Avoid errors in the formula (For now)" />
        </StackPanel>
    </Grid>
</UserControl>
